/* 主页index.html的样式表 */
/* 顶部导航条的容器 */
.topbar-wrapper{
    /* 设置宽度全屏 */
    width: 100%;
    height: 40px;
    line-height: 40px;
    background-color: #333;
}
/* 设置超链接的颜色 */
.topbar a{
    font-size: 12px;
    color: #b0b0b0;

}
/* 设置超链接移入的效果 */
.topbar a:hover{
    color: #fff;
}
/* 设置中间分割线 */
.topbar .line{
    font-size: 12px;
    color: #424242;
    margin: 0 8px;
}
/* 设置左侧导航条 */
.service,.topbar li{
    float: left;
}
.app{
    position: relative;
}
/* 设置app的小三角 */
/* .app-into:hover .app::after{ */
.app::after{
    content: "";
    display: none;
    /* 设置绝对定位 */
    position: absolute;
    width: 0;
    height: 0;
    /* 设置四个方向的边框 */
    border: 8px transparent solid;
    /* 去除上边框 */
    border-top: none;
    /* 单独设置下边框的颜色 */
    border-bottom-color: #fff;
    bottom:0;
    left:0;
    right: 0;
    margin: auto;

}
.app:hover .qrcode,
.app:hover::after{
    display: block;
    height: 148px;
}
/* .app:hover .qrcode{
    display: block;
} */

/* 设置下载app的下拉 */
.app .qrcode{
    display: none;
    height: 0px;
    overflow: hidden;
    position: absolute;
    left: 22px;
    width: 124px;
    /* height: 148px; */
    margin-left: -62px;
    line-height: 1;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 3);
    /* transition: 用于为样式设置过渡效果 */
    transition: height 0.3s;
    z-index: 1;
}
/* 设置二维码的图片 */
.app .qrcode img{
    width: 90px;
    margin: 17px;
    margin-bottom: 10px;
}
/* 设置二维码的文字 */
.app .qrcode span{
    font-size: 14px;
    color: #000;
}
/* 设置购物车的下拉 */
.shop-cart .shop-qrcode{
    position: absolute;
    width: 330px;
    height: 0;
    overflow: hidden;
    border: 1px solid #000;
    box-shadow: 0 0 10px rgba(0, 0, 0,0.5);
    border-bottom: none;
    border-top: none;
    background-color: #fff;
    z-index: 2;
    transition: height 0.3s;
    margin-left: -209px;
}
.shop-cart:hover .shop-qrcode{
    height: 124px;  
}

/* 设置里面的文字 */
.shop-cart .shop-qrcode span{
    line-height: 124px;
    font-size: 12px;
    color: #000;
}
/* 设置右侧导航条 */
.shop-cart {
    position: relative;
    right: -360px;
}
.user-info{
    position: relative;
    right: -70px;
}

.shop-cart a{
    width: 120px;
    background-color: #424242;
    text-align: center;
}
.shop-cart:hover a{
    background-color: #fff;
    color: #ff6700;
}
.shop-cart i{
    margin-right: 2px;
}
.shop-cart{
    margin-left: 26px;
}
.header-wrapper{
    /* background-color: red; */
    position: relative;
}
/* 设置中间的header */
.header{
    height: 100px;
    /* background-color: yellow; */
}

/* 设置logo的h1 */
.header .logo{
    float: left;
    margin-top: 22.5px;
    width: 55px;
    height: 55px;
    position: relative;
    overflow: hidden;
    /* 隐藏logo种的文字 */
    text-indent: -999px;
}
/* 统一设置logo的超链接 */
.header .logo a{
    position: absolute;
    width: 55px;
    height: 55px;
    left: 0;
    background-image: url(../img/logo-mi2.png);
    background-position: center;
    background-size: 70px 69px;
    transition: left 0.3s;
}
/* 设置home的图标 */
.header .logo .home{
    background-image: url(../img/R-C.jpg); 
    left: 0px;
}
/* 设置鼠标移入二个图标的位置 */
.header .logo:hover .mi{
    left: 55px;
}
.header .logo :hover .home{
    left: 0;
}
/* 设置中间的导航条 */
.header .nav-wrapper{
    float: left;
    margin-left: 7px;
}
/* 设置导航条 */
.header .nav{
    /* width: 792px; */
    height: 100px;
    line-height: 100px;
    padding-left: 58px;
}
/* 设置li */
.nav > li{
    float: left;
}
.all-goods-wrapper{
    position: relative;
}
/* 设置左侧导航条 */
.left-menu{
    width: 234px;
    height: 466px;
    padding: 20px 0;
    background-color: rgba(0,0,0,.6);
    position: absolute;
    left: -120px;
    line-height: 1;
    z-index: 1;
}

.left-menu a i{
    float: right;
    line-height: 39.5px;
}
ul .left-menu li a{
    display: block;
    height: 39.5px;
    line-height: 39.5px;
    color: #fff;
    margin-right: 0;
    padding-right: 30px;
    padding-left: 20px;
    font-size: 14px;
    
}
ul .left-menu li a:hover{
    color: #fff;
    background-color: #ff6700;
}

.nav-wrapper li a{
    display: block;
    font-size: 16px;
    margin-right: 20px;
}
/* 隐藏全部商品 */
.all-goods{
   visibility: hidden;
}
.nav-wrapper li a:hover{
    color: #ff6700;
}
.nav .goods-info{
    /* height: 228px; */
    height: 0;
    overflow: hidden;
    width: 100%;
    background-color: #fff;
    position: absolute;
    top:100px;
    left: 0;
    transition: height 0.3s;
    z-index: 9999;
}
/* .nav li:not(:first-child):not(:nth-child(10)):not(:nth-child(9)):hover ~ .goods-info, */
.nav .show-goods:hover ~ .goods-info,
.goods-info:hover{
    height: 228px;
    border-top: 1px solid rgb(224, 224, 224);
    box-shadow: 0 5px 3px rgba(0, 0, 0,.2);
}
/* 搜索框的容器 */
.search-wrapper{
    width: 296px;
    height: 50px;
    float: right;   
    margin-top: 25px;
}
.search-wrapper .search-inp{
    box-sizing: border-box;
    width: 244px;
    border: none;
    border: 1px solid rgb(224, 224, 224);
    float: left;
    padding: 0 10px;
    height: 50px;
    font-size: 16px;
}
/* 设置input 获取焦点后的样式 */
.search-wrapper .search-inp:focus ,
.search-wrapper .search-inp:focus+button{
    /* outline: 1px red solid; */
    border-color: #ff6700;
    
}
.search-wrapper .search-btn{
    width: 50px;
    height: 50px;
    float: left;
    padding: 0;
    border: none;
    background-color: #fff;
    color: #616161;
    font-size: 16px;
    border: 1px solid rgb(224, 224 , 224);
    border-left:none;
}
.search-wrapper .search-btn:hover{
    background-color: #ff6700;
    color: white;
    border: none;
}
/* 设置bannner */
.banner{
    position: relative;
    height: 390px;
}
 .banner .img-list li{
    position: absolute;
} 
.banner img{
    width: 1242px;
    vertical-align: top;
    margin-left: 150px;
}
/* 设置五个导航点 */
.pointer{
    position: absolute;
    bottom: -50px;
    right: 170px;
    
}
.pointer a{
    float: left;
    width: 6px;
    height: 6px;
    border: 2px rgba(255, 255, 255, 0.4) solid;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    margin-left: 6px;
}
.pointer a:hover,.pointer a.active{
    border: rgba(0, 0, 0, 0.4);
    background-color: 2px rgba(255, 255, 255, 0.4) solid;
}
/* 设置二个箭头 */
.prev-next a{
    width: 41px;
    height: 69px;
    background-image: url(../img/05.png);
    position: absolute;
    top:0;
    bottom:0;
    margin: auto 140px;
}
.prev-next .prev{
    left: 234px;
    background-position: -84px 0;
}
.prev-next .next{
    right: 0;
    background-position: -125px 0;
}
.prev-next .prev:hover{
    background-position: 0 0;
}
.prev-next .next:hover{
    background-position: -42px 0;
}
/* 设置回到顶部的元素
 */
.back-top{
    width: 26px;
    height: 206px;
    background-color: orange;
    /* 开启固定定位 */
    position: fixed;
    bottom: 60px;
    /* 将right值设置为视口宽度的50% */
    right: 50%; 
    margin-right: -649px;

    /* 
        布局的等式
        left+magin-left+width+margin-right+right=视口的宽度


    */

}

/* 设置广告容器 */
.ad{
    position: absolute;
    height: 170px;
    background-color: red;
    margin-top: 14px;
    top:620px;
    left: 145px;
}
.ad .shortcut,
.ad .imgs ,
.ad li{
    float: left;
}
/* 设置左侧快捷方式 */
.ad .shortcut{
    width: 234px;
    height: 168px;
    background-color: #5f5750;
    margin-right: 14px;
    padding-top: 2px;
    padding-left: 6px;
}
.ad .shortcut li{
    position: relative;
}
/* 设置上边框 */
.ad .shortcut li::before{
        content: "";
        position: absolute;
        background-color: red;
        width: 50px;
        height: 1px;
        left: 0;
        top: 0;
        right: 0;
        margin: 0 auto;

}
/* 设置左边框 */
.ad .shortcut li::after{
    content: "";
    position: absolute;
    height: 70px;
    width: 1px;
    background-color: red;
    left: 0;
    top: 0;
    right: 0;
    margin:  auto 0;
}
/* 设置快捷方式中的超链接 */
.ad .shortcut a{
    display: block;
    color: #cfccca;
    height: 76px;
    width: 76px;
    text-align: center;
    font-size: 12px;
    overflow: hidden;
}
.ad .shortcut a:hover{
    color: #fff;
}
/* 设置图标字体 */
.ad .shortcut i{
    display: block;
    margin-top: 20px;
    margin-bottom: 6px;
    font-size: 20px;
}
/* 设置左侧的图片 */
.ad .imgs li{
    width: 316px;
    margin-right: 15px;
}
.ad .imgs li:last-child {
    margin: 0;
}
.ad .img{
    width: 100%;
    vertical-align: top;
}


